package com.workflow;

/**
 * TaskDetail.java 任务细节表
 * 
 * @author yaojinshan
 * @since 2018年5月9日下午4:17:54
 */
public class TaskDetail {
	public static final String TYPE_START = "0";
	public static final String TYPE_END = "99";
	public static final String TYPE_MIDDLE = "middle";

	public static final String BRANCH_TYPE_TRUE = "1";
	public static final String BRANCH_TYPE_FALSE = "0";

	private String id;// 细节Id
	private String name;// 细节名称
	private String type;// 0：开始节点，99：结束节点 ，其他：中间节点
	private String taskId;// 任务Id
	private String branchType;// 分支类型：0：不是分支，1：是分支
	private String backId;// 回退节点Id
	private String nextId;// 下一个节点Id

	/**
	 * 
	 */
	public TaskDetail() {

	}

	public TaskDetail(String id, String name, String type, String taskId, String backId) {
		this.id = id;
		this.name = name;
		this.type = type;
		this.taskId = taskId;
		this.backId = backId;
	}

	public TaskDetail(String id, String name, String type, String taskId, String branchType, String methodPath,
			String yesId, String noId, String backId) {
		this(id, name, type, taskId, backId);
		this.branchType = branchType;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getBranchType() {
		return branchType;
	}

	public void setBranchType(String branchType) {
		this.branchType = branchType;
	}

	public String getBackId() {
		return backId;
	}

	public void setBackId(String backId) {
		this.backId = backId;
	}

	public String getNextId() {
		return nextId;
	}

	public void setNextId(String nextId) {
		this.nextId = nextId;
	}

	@Override
	public String toString() {
		return "TaskDetail [id=" + id + ", name=" + name + ", type=" + type + ", taskId=" + taskId + ", branchType="
				+ branchType + ", backId=" + backId + ", nextId=" + nextId + "]";
	}

}
